@import "./var.scss";
.home-page {
  background-color: #FFF;
  .part {
    position: relative;
    padding-top: 30px;
    .sub-title,
    .main-title {
      position: relative;
      color: #252525;
      letter-spacing: 1px;
    }
    .sub-title {
      font-size: 24px;
    }
    .main-title {
      height: 50px;
      font-size: 30px;
      font-weight: bold;
      img{
        margin: 0 10px;
        vertical-align: -12px;
      }
    }
    .more {
      position: absolute;
      right: 10px;
      top: 40px;
      color: $mainColor;
      font-size: 16px;
      span{
        font-size: 18px;
        vertical-align: -4px;
      }
      &:hover {
        text-decoration: underline;
      }
    }
    .big-box,
    .box {
      color: #252525;
      font-size: 14px;
      transition: all 0.3s;
      &:hover {
        transition: all 0.3s;
        transform: translateY(-4px);
        box-shadow: 2px 2px 10px 3px rgba(0, 0, 0, 0.1);
      }
      .txt {
        height: 50px;
        padding: 0 10px;
        font-size: 16px;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        text-overflow: ellipsis;
        &:hover {
          color: $mainColor;
        }
      }
      .price {
        padding: 0 10px;
        b,
        em {
          color: #fd5e0d;
        }
        em {
          margin-right: 2px;
          font-size: 20px;
          font-weight: 600;
        }
      }
    }
    .box {
      display: block;
      padding-bottom: 14px;
      .txt,
      .price {
        margin-bottom: 5px;
      }
      img {
        margin-bottom: 15px;
        width: 100%;
      }
    }
  }
  .recommend {
    padding-top: 40px;
    .box {
      position: relative;
      width: 280px;
      img {
        height: 200px;
      }
      .txt {
        height: 50px;
      }
    }
  }
  .linzhi,
  .lasa,
  .ali,
  .guide {
    margin-top: 20px;
    .cnt {
      position: relative;
      height: 692px;
      & > div {
        display: inline-block;
        position: absolute;
        top: 0;
        font-size: 0;
      }
      .big-box,
      .box {
        display: inline-block;
      }
      .big-box {
        position: relative;
        height: 328px;
        width: 588px;
        margin: 0 300px 24px 0;
        img {
          width: 588px;
          height: 328px;
        }
        .txt {
          height: 25px;
          margin-bottom: 0;
          -webkit-line-clamp: 1;
          color: #fff;
        }
        .bg {
          position: absolute;
          bottom: 0;
          left: 0;
          width: 100%;
          height: 70px;
          padding: 8px 0;
          background-color: rgba(0, 0, 0, 0.5);
          line-height: 1.6;
        }
      }
      .box {
        position: relative;
        width: 282px;
        margin: 0 24px 24px 0;
        vertical-align: top;
        img {
          height: 206px;
          width: 100%;
        }
        &.box-pos{
          position: absolute;
          top: 0;
          right: 0;
        }
      }
    }
    .cnt-left {
      left: 0;
      width: 918px;
    }
    .cnt-right {
      right: 0;
      width: 288px;
      height: 692px;
      .sub-title {
        height: 30px;
        margin: 0 0 0 12px;
        font-size: 16px;
        color: #252525;
      }
      .block {
        display: block;
        height: 100px;
        width: 100%;
        position: relative;
        transition: all 0.3s;
        &:nth-of-type(1),
        &:nth-of-type(2),
        &:nth-of-type(3){
          .rank-bg{
            border-top-color: #FC0000;
          }
        }
        &:hover {
          transition: all 0.3s;
          transform: translateY(-4px);
          box-shadow: 4px 4px 10px 1px rgba(0, 0, 0, 0.1);
        }
      }
      img {
        left: 12px;
        width: 82px;
        height: 78px;
      }
      img,
      .rank-bg,
      .rank,
      .txt,
      .price{
        position: absolute;
        top: 11px;
      }
      .rank-bg {
        left: 12px;
        width: 0;
        height: 0;
        border-top: 28px solid #fb5f10;
        border-right: 28px solid transparent;
      }
      .rank {
        left: 8px;
        width: 20px;
        height: 12px;
        color: #fff;
        font-size: 12px;
        font-weight: bold;
        text-align: center;
        letter-spacing: -3px;
      }
      .txt {
        right: 5px;
        height: 44px;
        width: 178px;
        font-size: 14px;
        color: #252525;
        line-height: 1.5;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        text-overflow: ellipsis;
        &:hover{
            color: $mainColor;
        }
      }
      .price {
        top: auto;
        right: 10px;
        bottom: 11px;
        width: 178px;
        height: 18px;
        line-height: 16px;
        text-align: right;
        font-size: 12px;
        color: #777;
        b, em{
            color: #fd5e0d;
        }
        em{
            font-size: 18px;
            font-weight: bold;
        }
      }
    }
  }
  .guide{
    .cnt{
      height: 525px;
    } 
    .cnt-left{
      width: 900px;
      .item{
        display: block;
        position: relative;
        height: 150px;
        background: #fff;
        border-bottom: 1px dashed #ccc;
        &+.item{
          margin-top: 10px;
        }
        &:hover {
          transition: all 0.3s;
          // transform: translateY(-4px);
          box-shadow: 4px 4px 10px 1px rgba(0, 0, 0, 0.1);
          border-bottom: none;
        }
        &>img{
          position: absolute;
          left: 0;
          top: 0;
          overflow: hidden;
          width: 220px;
          height: 150px;
        }
      }
      .context{
        padding: 15px 20px 0 245px;
      }
      .txt{
        display: block;
        height: 50px;
        line-height: 25px;
        font-size: 18px;
        font-weight: 400;
        overflow: hidden;
        color: #000;
        &:hover{
          color: $mainColor;
        }
      }
      .desc{
        height: 60px;
        line-height: 20px;
        margin-bottom: 5px;
        font-size: 14px;
        color: #7c7c7c;
        overflow: hidden;
      }
    }
    .cnt-right{
      width: 260px;
      height: auto;
      .sub-title{
        margin: 0 0 15px 0;
        color: #000;
        font-size: 18px;
      }
      .item{
        display: block;
        padding-bottom: 15px;
        border-bottom: 1px dashed #ccc;
        &+.item{
          margin-top: 15px;
        }
        &:last-child{
          border-bottom: none;
        }
        .txt{
          position: relative;
          width: auto;
          height: auto;
          right: 0;
          top: 0;
          margin-bottom: 5px;
          font-size: 14px;
          color: #333;
          &:hover{
            color: $mainColor;
          }
        }
        .time{
          font-size: 12px;
          color: #777;
        }
      }
    }

  }
}
